<div class="banner">
    <div class="title">
        <a href="<?php echo Core::site_url();?>" title="Khoa Công Nghệ Thông Tin"><span>Khoa Công Nghệ Thông Tin</span></a>
    </div>
    <div class="loginDisplay">
        <p class="loginlink">
            <?php if(isset($_SESSION['nguoi_dung_da_login']) && $_SESSION['nguoi_dung_da_login']){?>
                 Chào bạn: <strong style='color: blue;'><a href="<?php echo Core::site_url('nguoidung/capnhatthongtin/' . $_SESSION['nguoi_dung_da_login']);?>"><?php echo $_SESSION['nguoi_dung_da_login'];?></a></strong>
                 <a href="<?php echo Core::site_url('nguoidung/dangxuat');?>" title="Thoát">Thoát</a>
            <?php }else{?>
                <a href="<?php echo Core::site_url('nguoidung/dangnhap');?>" title="Đăng nhập">Bạn chưa đăng nhập</a> | <a href="<?php echo Core::site_url('nguoidung/dangky');?>" title="Đăng ký">Đăng ký</a>
            <?php }?>
        </p>
    </div>
</div><!--End div.banner-->
<div class="primary left">
    <ul id="mainnav" class="horizontal">
        <li><a href="<?php echo Core::site_url();?>"><span><strong>Trang chủ</strong></span></a></li>
        <li><a href="<?php echo Core::site_url('quanlysach');?>"><span><strong>Sách mới nhất</strong></span></a></li>

		<?php if(!isset($_SESSION['nguoi_dung_da_login']) || !$_SESSION['nguoi_dung_da_login']){?>
        <li><a href="<?php echo Core::site_url('nguoidung/dangky');?>"><span><strong>Đăng ký</strong></span></a></li>
		<?php } ?>
        <li><a href="<?php echo Core::site_url('gioithieu');?>"><span><strong>Giới thiệu</strong></span></a></li>
    </ul>
</div>